/**
 * @author Justin Akin
 * @version Action Pals Core Library 0.1.0
 */
package com.actionpals.events
{
	
	import com.actionpals.base.BaseEvent;
	
	/**
	 * Events associated with the Mouse Wheel.
	 */
	public class WheelScrollEvent extends BaseEvent
	{
		
	//--------------------------------------------------------------------------------
	//
	//	Public Static Constants
	//
	//--------------------------------------------------------------------------------
	
		public static const WHEEL_UP:String = "wheelUp";
		public static const WHEEL_DOWN:String = "wheelDown";
		
	//--------------------------------------------------------------------------------
	//
	//	Protected Member Variables
	//
	//--------------------------------------------------------------------------------
	
		protected var _delta:int;
		
	//--------------------------------------------------------------------------------
	//
	//	Constructor
	//
	//--------------------------------------------------------------------------------
		
		/**
		 * Constructor.
		 */
		public function WheelScrollEvent( type:String, bubbles:Boolean = false, cancelable:Boolean = false, delta:int = 0 )
		{
			super( type, bubbles, cancelable );
			_delta = delta;
		}
		
	//--------------------------------------------------------------------------------
	//
	//	Getters and Setters
	//
	//--------------------------------------------------------------------------------
		
		public function get delta():int
		{
			return _delta;
		}
		
		public function set delta( delta:int ):void
		{
			_delta = delta;
		}
		
	}
	
}